#include "global.h"
#include "init.h"
struct all_info all_storage_data;
struct mutex mutex;
struct cond cond;
struct pthread thread;
struct linkqueue *link_data;
struct linkqueue *link_cmd;
struct linkqueue *link_db;
int main(int argc, const char *argv[])
{
	pid_t pid;
	pid = fork();
	if(-1 == pid)
	{
		perror("fail to fork");
		exit(1);
	}
	else if(0 == pid)
	{
		//服务器
		
	}
	else{
		//system
		system_init(&all_storage_data, &mutex, &cond);
	}
	pause();
	return 0;
}
